﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof.Models.NewsArticleViewModel>" %>

<div>
    <%: Html.LabelFor(model => model.newsArticle.Title) %><br />
    <%: Html.TextBoxFor(model => model.newsArticle.Title) %>
    <%: Html.ValidationMessageFor(model => model.newsArticle.Title) %>
</div>            
<div>
    <%: Html.LabelFor(model => model.newsArticle.Body) %>
    <%: Html.ValidationMessageFor(model => model.newsArticle.Body) %>
    <%: Html.TextAreaFor(model => model.newsArticle.Body, new { @id ="Editor1", @class="ckeditor" }) %>
</div>
<p>
    <input type="submit" value="Samþykkja" />
</p>